﻿using System;
using WP7EmulatorSwitcher.Model;
using System.Collections;
using System.Collections.Generic;

namespace WP7EmulatorSwitcher.Design
{
    public class PhoneSkinDesignService : IPhoneSkinService
    {
        public void GetPhoneSkins(Action<IEnumerable<PhoneSkin>, Exception> callback)
        {

            List<PhoneSkin> skins = new List<PhoneSkin>();
            var defaultSkin = new PhoneSkin("Default");
            defaultSkin.Id = "WM7";
            defaultSkin.X = 62;
            defaultSkin.Y = 101;
            skins.Add(defaultSkin);

            var lumia800BlackSkin = new PhoneSkin("Nokia Lumia 800");
            lumia800BlackSkin.Id = "Nokia_Lumia_800_Black";
            lumia800BlackSkin.SubTitle = "Black";
            lumia800BlackSkin.X = 70;
            lumia800BlackSkin.Y = 145;
            skins.Add(lumia800BlackSkin);

            var lumia800BlueSkin = new PhoneSkin("Nokia Lumia 800");
            lumia800BlueSkin.Id = "Nokia_Lumia_800_Blue";
            lumia800BlueSkin.X = 70;
            lumia800BlueSkin.Y = 145;
            lumia800BlueSkin.SubTitle = "Blue";
            skins.Add(lumia800BlueSkin);

            var lumia800PinkSkin = new PhoneSkin("Nokia Lumia 800");
            lumia800PinkSkin.Id = "Nokia_Lumia_800_Black";
            lumia800PinkSkin.X = 70;
            lumia800PinkSkin.Y = 145;
            lumia800PinkSkin.SubTitle = "Pink";
            skins.Add(lumia800PinkSkin);

            var lumia710BlackSkin = new PhoneSkin("Nokia Lumia 710");
            lumia710BlackSkin.Id = "Nokia_Lumia_800_Black";
            lumia710BlackSkin.SubTitle = "Black";
            skins.Add(lumia710BlackSkin);

            var lumia710WhitePinkSkin = new PhoneSkin("Nokia Lumia 710");
            lumia710WhitePinkSkin.Id = "Nokia_Lumia_800_Black";
            lumia710WhitePinkSkin.SubTitle = "White Pink";
            skins.Add(lumia710WhitePinkSkin);

            var htcTitanSkin = new PhoneSkin("HTC Titan");
            htcTitanSkin.Id = "Nokia_Lumia_800_Black";
            skins.Add(htcTitanSkin);

            callback(skins, null);
        }

        #region IPhoneSkinService Members


        public bool SetEmulatorPhoneSkin(PhoneSkin skin)
        {
            return true;
        }

        #endregion
    }
}